/*
 * @Descripttion: 
 * @Author: zhaozheng
 * @Version: 0.0.1
 * @Date: 2022-09-20 15:08:23
 * @LastEditors: zhaozheng
 * @LastEditTime: 2022-12-13 17:42:12
 */
export function param(json: any) {
    if (!json) return ''
    return cleanArray(
        Object.keys(json).map(key => {
        if (json[key] === undefined) return ''
        return encodeURIComponent(key) + '=' + encodeURIComponent(json[key])
        })
    ).join('&')
}
export function cleanArray(actual: Array<any>) {
  const newArray = []
  for (let i = 0; i < actual.length; i++) {
    if (actual[i]) {
      newArray.push(actual[i])
    }
  }
  return newArray
}
// 图表颜色
export const chartColors =  ['#6FFCFE', '#FF8B9E', '#6FB9FE', '#FFE7A5', '#469f4b', '#67e0e3', '#e39d6b', '#dc646d', '#eae46c', '#e7bcf3']